package io;

import java.io.File;
import java.io.IOException;
//文件属性
public class IODemo1 {
    public static void main(String[] args) throws IOException {
        File file = new File("C:/Example/1/aaa.txt");
        System.out.println(file.getParent());
        System.out.println(file.getName());
        System.out.println(file.getPath());
        System.out.println(file.getAbsolutePath());
        System.out.println(file.getCanonicalPath());//针对上面的绝对路径整理化简后的结果
    }
}
